package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.CustomVisitDao;
import io.renren.entity.CustomVisitEntity;
import io.renren.service.CustomVisitService;



@Service("customVisitService")
public class CustomVisitServiceImpl implements CustomVisitService {
	@Autowired
	private CustomVisitDao customVisitDao;
	
	@Override
	public CustomVisitEntity queryObject(Integer id){
		return customVisitDao.queryObject(id);
	}
	
	@Override
	public List<CustomVisitEntity> queryList(Map<String, Object> map){
		return customVisitDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return customVisitDao.queryTotal(map);
	}
	
	@Override
	public void save(CustomVisitEntity customVisit){
		customVisitDao.save(customVisit);
	}
	
	@Override
	public void update(CustomVisitEntity customVisit){
		customVisitDao.update(customVisit);
	}
	
	@Override
	public void delete(Integer id){
		customVisitDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		customVisitDao.deleteBatch(ids);
	}

}
